import Home from '@/views/pages/home'
import demoRouter from './group/demo'
import recordRouter from './group/gov'
import systemRouter from './group/system'
import settingsRouter from './group/settings'
import capitalRouter from './group/capital'
import privateRouter from './group/private'

const base = [
  {
    path: '/',
    name: 'home',
    component: Home,
    children: [
      {
        path: '/index',
        name: 'index',
        component: () => import('@/views/pages/index')
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '@/views/pages/login')
  }
]
base[0].children.push.apply(base[0].children, demoRouter)
base[0].children.push.apply(base[0].children, recordRouter)
base[0].children.push.apply(base[0].children, systemRouter)
base[0].children.push.apply(base[0].children, settingsRouter)
base[0].children.push.apply(base[0].children, capitalRouter)
base[0].children.push.apply(base[0].children, privateRouter)
export default base
